package com.xy.service;

import java.util.List;

import com.xy.dao.impl.PageResults;
import com.xy.model.TextBook;

public interface TextBookService {

  boolean add(TextBook tb);
  boolean update(TextBook tb);
  boolean delete(TextBook tb);
  TextBook get(int id);
  PageResults listByPage(int page);
  <T> List<TextBook> list(Class<T> name);
  PageResults query(Object...objects);
  List<TextBook> getByObject(String propertyName,Object value);
  
}
